﻿from Weather import Observation
from Weather import Repository
from Weather import Period
from WeatherUnderground import *

gateway = ServiceGateway(WebServiceStub())
repository = Repository()

currentConditions = gateway.getCurrentConditions('80836')
repository.add(currentConditions)

for period in repository.findPeriods():
	print(period.periodID)
	for observation in period.observations:
		print(observation.temperature)
